<empty name="data.shop">
    <header>
        开发者
    </header>
    <section>
        <div class="clearfix">
            <div class="col-xs-4">
                <div class="row"><a href="{$data.user.space_url}"><img class="avatar-img" src="{$data.user.avatar128}"/></a>
                </div>
            </div>
            <div class="col-xs-8 text-ellipsis">
                <div>@{$data.user.space_link}</div>
                <div>
                    {:W('Common/UserRank/render',array($data['uid']))}
                </div>
            </div>
        </div>
        <p></p>

    </section>
    <else/>
    <header>
        服务商
    </header>
    <section>
        <div class="clearfix">
            <div class="col-xs-4">
                <div class="row"><a href="{:U('Index/shop',array('id'=>$data['shop']['uid']))}"><img src="{$data.shop.logo|thumb=75,75}"/></a>
                </div>
            </div>
            <div class="col-xs-8 ">
                <div class="text-ellipsis">{$data.id|display_shop}</div>
                <div class="text-ellipsis">店主：{$data.user.space_link}</div>
                <p class="text-ellipsis"> {$data.shop|display_star}</p>
            </div>
        </div>
        <p></p>
        <neq name="data.developer.kf_qq" value="">
            <a href="tencent://message/?uin={$data.developer.kf_qq}&Menu=yes" class="btn btn-success btn-xs"> 立即咨询</a> &nbsp;&nbsp;
        </neq>

        <a href="{:U('Index/shop',array('id'=>$data['shop']['uid']))}" class="btn btn-success btn-xs"><i
                class="icon-inbox"></i>
            进入店铺</a>


    </section>

</empty>


<php>
    $assign=D('AppstorePlugin')->getLimit(array('status'=>1,'uid'=>$data['uid'],'id'=>array('neq',$data['id'])),3,'update_time
    desc',1);
</php>
<empty name="assign">

    <else/>
    <hr class="margin-0"/>
    <!--一个插件-->
    <header>作者的其他作品</header>
    <!--一个插件-->

    <section>
        <volist name="assign" id="vo">
            <div class="row side_plug_in">
                <div class="col-md-6">
                    <a href="{:U('pluginDetail',array('id'=>$vo['id']))}">{$vo.cover|display_cover}</a>
                </div>

                <div class="col-md-6 col_left text-ellipsis">
                    <p class="tem_name_item text-more"><a
                            href="{:U('pluginDetail',array('id'=>$vo['id']))}">{$vo.title}</a></p>

                    <php>$assing_versions=D('AppstoreVersion')->where(array('goods_id'=>$vo['id']))->order('create_time
                        desc')->limit(1)->select();
                    </php>
                    <p><span class="count">{$vo.total_download_count}</span> 次下载</p>

                    <p><span>{$assing_versions[0]['id']|display_fee}</span></p>
                </div>
            </div>
        </volist>
    </section>

</empty>

<hr style="margin-top: 0;margin-bottom: 0">
<!--一个插件-->
<header>本类最近更新</header>

<!--一个插件-->
<php>
    $assign=D('AppstoreGoods')->getLimit(array('status'=>1,'entity'=>$data['entity']),5,'update_time desc',1);
</php>
<section>
    <volist name="assign" id="vo">
        <div class="row side_plug_in">
            <div class="col-md-6">
                <a href="{:U('pluginDetail',array('id'=>$vo['id']))}">{$vo.cover|display_cover}</a>
            </div>

            <div class="col-md-6 col_left text-ellipsis">
                <p class="tem_name_item text-more"><a href="{:U('pluginDetail',array('id'=>$vo['id']))}">{$vo.title}</a>
                </p>

                <php>$assing_versions=D('AppstoreVersion')->where(array('goods_id'=>$vo['id']))->order('create_time
                    desc')->limit(1)->select();
                </php>
                <p><span class="count">{$vo.total_download_count}</span> 次下载</p>

                <p><span>{$assing_versions[0]['id']|display_fee}</span></p>
            </div>
        </div>
    </volist>
</section>

